<templateGraph>
  <div class="charts">
    <div id="chartColumn" style="height: 300px; width: 400px"></div>
  </div>
</templateGraph>

<script>
import * as echarts from 'echarts'

export default {
  data() {
    return {
      chartColumn: null,
      nowDateValue: new Date()
    }
  },
  created() {

  },
  mounted() {
    this.drawLine()
  },
  methods: {
    drawLine() {
      this.chartColumn = echarts.init(document.getElementById('chartColumn'))
      this.chartColumn.setOption({
        title: {text: '质量分数'},
        tooltip: {},
        xAxis: {
          type: 'category',
          data: ['第一次测试', '第二次测试', '第三次测试', '第四次测试']
        },
        yAxis: {
          type: 'value',
          max: 100,
          show: true
        },
        series: [{
          data: [70, 85, 90, 93],
          type: 'line'
        }]
      })
    }
  }
}
</script>

<style scoped>

</style>
